/* Copyright (c) 2016-2020 Enfry Ltd. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of Enfry. 
 * You shall not disclose such Confidential Information
 * and shall use it only in accordance with the terms of the agreements
 * you entered into with Enfry.
 */
package com.enfry.common.util.control;

/**
 * 
 * <请简单说明此类用途>
 * 
 * @Title com.enfry.util.control.Eventee
 * @author Penghu
 * @date 2018年1月10日
 */
public interface Eventer<E> {
	/**
	 * 显性提供事件类接口，用于事件注册到控制器中
	 * 
	 * @return 返回事件类
	 */
	public Class<E> clazz();

	/**
	 * 事件处理器接口
	 * 
	 * @param event 事件
	 * @return 返加处理状态，=true表示处理完成，向上冒泡，=false表示处理终止，停止冒泡
	 */
	public boolean process(E event);
}
